package com.utooo.controller;

import com.utooo.constant.ResultCodeConstant;
import com.utooo.pojo.dto.common.RestResult;
import com.utooo.pojo.vo.common.SystemEnumsResponseVO;
import com.utooo.service.system.SystemService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author CK
 * @Date: 2025−04-17 14:47
 * @Description: SystemController
 * @Copyright: 南京优通信息科技股份有限公司
 */
@Tag(name = "供应商管理")
@RequestMapping("system")
@RestController
public class SystemController {

    @Autowired
    private SystemService systemService;

    @RequestMapping(value = "/get-system-enums", method = RequestMethod.GET)
    @Operation(summary = "获取系统枚举值")
    @ResponseBody
    public RestResult<SystemEnumsResponseVO> getSystemEnums() {
        SystemEnumsResponseVO result = systemService.getSystemEnums();
        return new RestResult<>(ResultCodeConstant.CODE_200, ResultCodeConstant.CODE_200_MSG, result);
    }

}
